package com.example.springbootyczy.config;

import com.example.springbootyczy.entity.Student;
import org.apache.catalina.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UserConfig {
    public UserConfig(){
        System.out.println("---------------------------userConfig");
    }
    @Bean(name = "student")
    public Student student(){
        Student student = new Student();
        student.setNo("001");
        student.setName("TFBoys");
        return student;
    }
}
